package vista;

import javax.swing.JPanel;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GradientPaint;
import java.awt.GridLayout;
import java.awt.geom.Rectangle2D;


public class PanelFondo extends JPanel
{
	
	public PanelFondo(){}
	
	public PanelFondo(GridLayout layout)
	{
		super(layout);
	}
	
    public void paintComponent(Graphics g)
    {
        super.paintComponent(g);

        Graphics2D g2d= (Graphics2D) g;

        //Color a combinar new Color(234,234,174)
        g2d.setPaint(new GradientPaint(0,0, new Color(56,172,222),0,this.getHeight(),new Color(173,243,255)));
        g2d.fill(new Rectangle2D.Double(0,0,this.getWidth(),this.getHeight()));

    }

}
